@use "sass:math";
$designWidth: 1920; // 设计稿宽度
$designHeight: 1080; // 设计稿高度

@function vw($px) {
  @return math.div(round(math.div($px, $designWidth) * 10000000), 10000000) * 100vw;
}

@function vh($px) {
  @return math.div(round(math.div($px, $designHeight) * 10000000), 10000000) * 100vh;
}